<?php

class Score_Form_CommentLevel extends Sfs_Form
{

    public function init()
    {
        $this->setMethod('post');
        $this->setName('commentLevelForm');

        $this->addElement('text','name',array(
            'label' =>'name',
             'required'   => true,
            'filters'    => array('StringTrim'),
            'validators' => array(array('stringLength', true, array(1,60)))
        ));
        $this->getElement('name')->getValidator('stringLength')->setEncoding('UTF8');

        $this->addElement('submit','commentLevelBtn',array(
            'label' =>'save',
        ));
    }
}